package com.msmall.community.job;

import com.msmall.community.bbs.service.TopicManager;
import com.msmall.community.common.service.CommendManager;

public class CommendJob {

	private CommendManager commendManager;
	private TopicManager topicManager;

	/**
	 * 每个5小时，刷新缓存中推荐的的帖子/文章，等
	 */
	public void refreshCommends(){
		
		commendManager.refreshBBS();
		
		commendManager.refreshQuestion();
		
		commendManager.refreshKlg();
		
		commendManager.refreshSiteIndex();
	}

	public void setCommendManager(CommendManager commendManager) {
		this.commendManager = commendManager;
	}

	public void setTopicManager(TopicManager topicManager) {
		this.topicManager = topicManager;
	}
}
